function act() {
    if (cm.getNumberFromQuestInfo(63071, "wall") < 5 && cm.getQuestStatus(63071) > 0) {
        cm.openScriptNpc()
    }
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, d, c) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }(e == 1) ? status++ : status--;
    selectionLog[status] = c;
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            var f = cm.getNumberFromQuestInfo(63260, "buff");
            if (f < 3) {
                cm.sendNormalTalk("#b以我目前的体格，根本没门儿！\r\n要不去帮#p9400215#做点事，好拿点#t2436086#吃？", 2, 0, false, true);
                cm.dispose()
            } else {
                var a = cm.addNumberForQuestInfo(63071, "wall", 1);
                cm.playerMessage(-1, "城墙正在一点一点开裂！(" + a + "/5)");
                cm.playerMessage(5, "城墙正在一点一点开裂！(" + a + "/5)");
                if (a == 5) {
                    cm.playerMessage(-1, "城墙终于塌了！");
                    cm.playerMessage(5, "城墙终于塌了！");
                    cm.sendNormalTalk_Bottom("#b碎……碎了！", 57, 0, false, true)
                } else {
                    cm.dispose()
                }
            }
        } else {
            if (status === b++) {
                cm.updateInfoQuest(63071, "wall=5;destroy=1");
                cm.dispose();
                cm.warp(867113302, 1, true)
            }
        }
    }
};